<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>显示所有列表</title>
  </head>
  
  <body>
  <div>
  	<table style="border:1px solid black; height:600px; width:900px; margin:auto 50px;">
		<tr>
			<th>编号</th>
			<th>姓名</th>
			<th>年龄</th>
			<th>工资</th>
			<th>消费</th>
			<th>性别</th>
		</tr>
    	<c:forEach items="${employeeList }" var="employee">
			<tr>
		    	<td>${employee.emp_id }</td>
		    	<td>${employee.emp_name }</td>
		    	<td>${employee.emp_age }</td>
		    	<td>${employee.emp_salary }</td>
		    	<td>${employee.emp_consume }</td>
		    	<td>${employee.emp_gender }</td>
			</tr>
   		</c:forEach>
  	</table>
  	<p>
	  	<a href="EmployeeListServlet?pages=1">首页</a>&nbsp;&nbsp;
	  	<a href="EmployeeListServlet?pages=${pages-1 }">上一页</a>&nbsp;&nbsp;
	  	<%int i=1; %>
	  	<c:forEach begin="<%=i %>" step="1" end="${pageCount }" varStatus="varSta">
	  		<a href="EmployeeListServlet?pages=<%=i %>"><%=i++ %></a>&nbsp;&nbsp;
	  	</c:forEach>
	  	<a href="EmployeeListServlet?pages=${pages+1 }">下一页</a>&nbsp;&nbsp;
	  	<a href="EmployeeListServlet?pages=${pageCount }">尾页</a>
  	</p>
  </div>
  </body>
</html>
